"""
WSGI config for demo project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/5.1/howto/deployment/wsgi/
"""
# 引入系统函数  本文件是同步通信网关接口标准，用来和Apache NGINX 通信，主要处理http通信
import os

from django.core.wsgi import get_wsgi_application
# 加载环境变量
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'demo.settings')

application = get_wsgi_application()
# 不自动追加/重定向
APPEND_SLASH = True